#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.service;

import com.github.pagehelper.PageInfo;
import ${package}.pojo.Demo;

/**
 * @author qingchang.tang
 * @date 2020/1/7 15:03
 */
public interface DemoService {

    /**
     * save
     *
     * @param o o
     * @return last id
     */
    Long save(Demo o);

    /**
     * get
     *
     * @param id id
     * @return result
     */
    Demo get(Long id);

    /**
     * list
     *
     * @param page page
     * @param size size
     * @return data
     */
    PageInfo<Demo> list(int page, int size);

    /**
     * del
     *
     * @param id id
     * @return result
     */
    int del(Long id);
}
